package UIPhoto
{
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;
	
	import flash.display.DisplayObject;
	import flash.events.MouseEvent;

	public class uip_ctrlHandle extends uif_ecomponent {
		private var _image: DisplayObject;
		public function uip_ctrlHandle(parent:uif_component, c_image:*, downFunc:Function=null) {
			_image = new c_image();
			super(parent, 0, 0, 20, 20, 'ctrlRect');
			_image.x = width / 2;
			_image.y = height / 2;
			buttonMode = true;
			addChild(_image);
//			alpha = 0;
			addEvent(MouseEvent.MOUSE_DOWN, downFunc);
		}
	}
}